//
//  RESingleton.h
//  录音
//
//  Created by ywy on 2016/12/29.
//  Copyright © 2016年 Wely. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h" // FMDB 数据库
#import "ReRecordModel.h"

@interface RESingleton : NSObject

+(RESingleton*)defaultCent;

// 存储
- (void)insertModel:(ReRecordModel *)model;
// 删除
- (void)deleteModel:(NSString*)title;
// 读取本地文件的个数
-(NSArray*)readModel;
// 根据未归类查询
- (NSArray *)readModelWithDate:(NSString*)dateStr;
// 根据专辑的名字
-(NSArray *)readModelWithAlbum:(NSString*)albumStr;
// 根据日期查找
-(NSArray*)readModelWithTitle:(NSString *)titleStr;
// 修改数据的信息
-(BOOL)ModifyTheDateWithBaseUrl:(NSString * )baseUrl
                       firstStr:(NSString *)firstis
                      secondStr:(NSString*)secondId
                       thirdStr:(NSString *)thirdId
                      albumName:(NSString*)albumName
                       titleStr:(NSString*)titleStr;
// 更新 是否上传
-(BOOL)isUp:(NSString*)baseUrl;

-(BOOL)isNotUP:(NSString *)baseUrl;

//  上传成功之后 更改对应的曲目id
-(BOOL)isIdStr:(NSString*)baseUrl with:(NSString *)idStr;

- (BOOL)isExistAppForTitle:(NSString *)title;


-(BOOL)isSelected:(NSString *)baseUrl;

-(BOOL)isNotSelected:(NSString *)baseUrl;







@end
